<div class="row-fluid sortable ui-sortable">
	<div id="form-jalur" class="box span12">
		<div class="box-header well" data-original-title>
			<h2 id="action-title">Menambah Jalur Distribusi</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
			</div>
		</div>
		<div class="box-content">
			<form id="form-edit-jalur" method="post" action="<?php echo base_url();?>jalur_distribusi/tambah_jalur" style="width: 43%; float: left;">
				<table class="table">
					<tbody>
						<tr>
						<td><label class="control-label">Pilih Titik Akhir</label></td>
							<td>
								<div class="controls">
								  <select data-rel="chosen" id="induk" name='induk'>
									<?php
										
										if($jalur->result_array()){
											foreach($jalur->result_array() as $row){
												echo "<option value='".$row["ID"]."'>".$row["NAMA"]."</option>";
											}
										} else {
											echo "<option value='0' selected>belum ada titik distribusi</option>";
										}
									?>
								  </select>
								</div>
							</td>
						</tr>
						<tr>
							<td><label class="control-label">Nama</label></td>
							<td><input id="nama" type="text" name="nama"></input></td>
						</tr>
						<tr>
							<td><label class="control-label">Keterangan</label></td>
							<td><textarea id="catatan" name="catatan"></textarea></td>
						</tr>
						<tr>
							<td></td>
							<input type="hidden" id="id-titik-pasok" name="id-titik-pasok" value=""></input>
							<input type="hidden" id="lng" name="lng" value=""></input>
							<input type="hidden" id="lat" name="lat" value=""></input>
							<td>
								<input type="reset" class="btn" value="Reset" onclick="resetForm();"></input>
								<input id="button-panel" type="submit" class="btn"></input>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</div>